#ifndef _server_h_
#define _server_h_

#include <QWidget>

class QTcpServer;
class QTextEdit;
class QTcpSocket;

class ServerStation : public QWidget
{
Q_OBJECT
private:
	QTcpServer*	ptcpServer;
	quint16		nNextBlockSize;
	QTextEdit*	in_memo;
private:
	void	sendToClient(QTcpSocket* pSocket, const QString& str);
public:
	ServerStation(int nPort, QWidget* pwgt = 0);
	
public slots:
virtual	void slotNewConnection();
	void slotReadClient();
};
#endif
